/*
 * Project: Made 2 Order Software service package
 * Package: com.made2ordersoftware.service.exceptions
 * File:    DAOException
 * Created: May 22, 2010
 */

/**
 * Copyright (c) 2010 Made 2 Order Software, LLC
 *
 * All rights reserved. No part of this software may be reproduced, stored in a retrieval system, or
 * transmitted in any form or by any means, without the prior written permission of Made 2 Order
 * Software.
 *
 * You may not distribute the URL or redistribute the files to third parties. You may transfer the
 * files onto a single storage device so long as you can prove ownership of the software. You may
 * not reverse engineer, decompile, or disassemble the software or media files. You may not modify
 * or translate the software or media, or distribute copies of the software or media without the
 * written consent of Made 2 Order Software, LLC.
 */
package com.made2ordersoftware.exceptions;

/**
 * Exception class thrown when there is any database exception not reported by a more specific
 * exception.
 *
 * @author David Canning <dcannin@gmail.com>
 * @version 1.0.0
 */
public class BusinessException extends Exception {

    /**
     * Creates an instance of
     * <code>BusinessException</code>.
     */
    public BusinessException() {
    }

    /**
     * Creates an instance of
     * <code>BusinessException</code> with a message and cause.
     *
     * @param message A detailed message of the exception.
     * @param cause   The cause of the exception. A null value is indicates that the cause is
     *                unknown.
     */
    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Creates an instance of
     * <code>BusinessException</code> with a cause.
     *
     * @param cause The cause of the exception. A null value is indicates that the cause is unknown.
     */
    public BusinessException(Throwable cause) {
        super(cause);
    }

    /**
     * Creates an instance of
     * <code>BusinessException</code> with a message.
     *
     * @param message A detailed message of the exception.
     */
    public BusinessException(String message) {
        super(message);
    }
}
